﻿#include "MainWindowGenerator.h"
#include "GUIFrame/MainWindow.h"
#include "GUIFrame/WorkingDirDlg.h"

MainWindowGenerator::MainWindowGenerator()
{
    //    this->setStyle("://Structural.qss");
    //    this->showMaximize(false);
}

QWidget * MainWindowGenerator::genMainWindow()
{
    return new GUI::MainWindow;
}

bool MainWindowGenerator::showPreSettingPage()
{
#ifndef QT_DEBUG
    GUI::WorkingDirDlg d;
    return d.exec() == QDialog::Accepted;
#else
    return true;
#endif // !QT_DEBUG 

}
